<?php

/**
 * Created by PhpStorm.
 * User: TomTaylor
 * Date: 2014.04.14.
 * Time: 11:44
 */
class Event
{
    protected $date;
    protected $startTime;
    protected $endTime;
    protected $eventName;
    protected $description;

    function __construct(Date $date, $description, $endTime, $eventName, $startTime)
    {
        $this->date = $date;
        $this->description = $description;
        $this->endTime = $endTime;
        $this->eventName = $eventName;
        $this->startTime = $startTime;
    }

    /**
     * @return mixed
     */
    public function getDate()
    {
        return $this->date;
    }

    /**
     * @param mixed $date
     */
    public function setDate($date)
    {
        $this->date = $date;
    }

    /**
     * @return mixed
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * @param mixed $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }

    /**
     * @return mixed
     */
    public function getEndTime()
    {
        return $this->endTime;
    }

    /**
     * @param mixed $endTime
     */
    public function setEndTime($endTime)
    {
        $this->endTime = $endTime;
    }

    /**
     * @return mixed
     */
    public function getEventName()
    {
        return $this->eventName;
    }

    /**
     * @param mixed $eventName
     */
    public function setEventName($eventName)
    {
        $this->eventName = $eventName;
    }

    /**
     * @return mixed
     */
    public function getStartTime()
    {
        return $this->startTime;
    }

    /**
     * @param mixed $startTime
     */
    public function setStartTime($startTime)
    {
        $this->startTime = $startTime;
    }

    function __toString()
    {
        return $this->date . " " . $this->eventName;
    }


} 